#include "Poller.h"
#include "Channel.h"



bool Poller::hasChannel(const Channel *channel) const
{
    const auto it = channels_.find(channel->fd());
    return it != channels_.end() && it->second == channel;
}
